#-*- encoding: gb2312 -*-  
  
import os, shutil, sys  
import pythoncom  
import sys  
import findFile # import find file function
import callVBA  #import callVBA function

reload(sys)   
sys.setdefaultencoding('gb2312') 

if __name__=='__main__': 
	# 1 step:
	# download all rar files from system
	# getAllSubLinks.py
	
	# 2 step:
	# unzip these files into a directory $idr
	# unzip.py
	
	# 3 step:
	# find *.doc path $path
	files =  findFile.findFiles('.doc','C:/test')
	print files
	
	# 4 step 
	# pass the found $path into CallVBA script here we have $files
	callVBA.callVBA('C:/c.xls','aa',files)
	